<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>代理订单</title>
	<link rel="shortcut icon" href="https://gtms04.alicdn.com/tps/i4/TB1_oz6GVXXXXaFXpXXJDFnIXXX-64-64.ico" type="image/x-icon"/>
	<link rel="stylesheet" href="https://g.alicdn.com/thx/cube/1.3.2/cube.min.css">
	<link rel="stylesheet" href="/wjfh/css/iconfont.css">
	<link rel="stylesheet" type="text/css" href="/wjfh/css/common.css"/>
	<link rel="stylesheet" type="text/css" href="/wjfh/layui/css/layui.css"/>
	<link rel="stylesheet" type="text/css" href="/wjfh/css/style.css"/>
	<script src="/wjfh/js/flexible.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="" id="dldd">
	<div class="resgcontain">
		<h1 class="site-h1">我的订单</h1>
		<div class="layui-row">
			<div class="layui-form layui-col-xs12">
				<select name="time" lay-filter="selectZt">
					<option value="">订单状态</option>
					<option value="2">已完成</option>
					<option value="1">待处理</option>
				</select>
			</div>
		</div>
	</div>
	<!--<div class="resgcontain">-->
	<!--<div class="saomaiptbox">-->
	<!--<input type="text" class="publicIptSty widthman" id="" value="" placeholder="代理商昵称" readonly="readonly"/>-->
	<!--<span class="icon iconfont">&#xe602;</span>-->
	<!--</div>-->
	<!--</div>-->

	<div class="resgcontain  layui-form" v-for="(dldds,key) in dldd" v-if="zhaungtai == dldds.status || zhaungtai ==  0">
		<div class="item">
			<div class="dingdantop layui-row">
				<div class="layui-col-xs5">收货人:{{dldds.name}}</div>
				<div class="layui-col-xs7">下单时间:{{dldds.createTime}}</div>
			</div>
		</div>
		<div class="item dingdancot mb">
			<div class="dingdantop layui-row item" v-for="(dlddss,index) in dldds.data">
				<div class="layui-col-xs6">{{dlddss.goodsName}}</div>
				<div class="layui-col-xs6"><span class="num">×{{dlddss.goodsNum}}</span></div>
			</div>
			<div class="dingdantop layui-row item mb">
				<div class="layui-col-xs12">总金额<span class="num">￥{{dldds.amount}}</span>
					<div class="layui-layout-right">
						<!--:class="layui-btn-disabled"-->
						<button type="button" class="layui-btn layui-btn-xs layui-btn-disabled" v-if="dldds.status == 1">待处理</button>
						<button type="button" class="layui-btn layui-btn-xs layui-btn-disabled" v-if="dldds.status == 2">已完成</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>




<script src="/wjfh/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="/wjfh/js/vue.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/wjfh/js/axios.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js?v=2.1.4}"></script>
<script>
    var idata = new  Vue({
        el:"#dldd",
        data:{
            dldd:{},
			zhaungtai:0,
			year:0,
			month:0
        },
        methods:{

        },
        mounted:function () {

            layui.use(['jquery', 'form','layer'], function() {
                $ = layui.jquery,
                    form = layui.form,
                    layer = layui.layer;
                layer.ready(function(){
                    layer.load(1);
                });

                form.on('select(selectZt)', function(data){
                    idata.zhaungtai = data.value;
                    console.log(idata.zhaungtai);
                });
                var date=new Date;

                $.ajax({
                    cache: true,
                    type: "POST",
                    url: "/goodsManager/gmOrder/getMyOrder",
                    error : function(request) {
                        layer.alert("Connection error");
                    },
                    success : function(data) {
                        console.log(data);
                        idata.dldd = data;
                        layer.closeAll('loading');
                    }
                });
            })
        }
    })
</script>
</body>
</html>
